import Vue from 'vue'
import App from './App.vue'
import '@/mobile/flexible'//适配
import '@/style/reset.css' //重置
import router from '@/router'//路由
import axios from 'axios'//axios
import { NavBar, Tabbar, TabbarItem, Col, Row, Image as VanImage, Cell, Icon, Search,List } from 'vant';//引入vant组件
axios.defaults.baseURL = 'http://localhost:3000'//设置项目根路径
Vue.prototype.$http = axios //挂载到vue原型上
Vue.config.productionTip = false
Vue.use(NavBar);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Col);
Vue.use(Row);
Vue.use(VanImage);
Vue.use(Cell);
Vue.use(Icon);
Vue.use(Search);
Vue.use(List);
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
